﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectChannel.aspx.cs" Inherits="Myproject.BSM.PcWeb.PcChannel.Article.selectChannel" %>

<div class="bjui-pageHeader">
</div>
<div class="bjui-pageContent">
    <table data-toggle="tablefixed" data-width="100%">
        <thead>
            <tr>
                <th></th>
                <th>文章频道</th>
                <th width="74">操作</th>
            </tr>
        </thead>
        <tbody>
            <%if (MessageTable != null && MessageTable.Rows.Count > 0)
              {
                  System.Data.DataRow[] rows1 = MessageTable.Select(" ParentId='0'");
                  foreach (System.Data.DataRow row in rows1)
                  {%>
            <tr>
                <td style="text-align: left;"><a href="#"><%= row["ChanneTitle"] %></a></td>
                <td style="text-align: left;"><a href="#"><%= row["EChanneTitle"] %></a></td>
                 <td>
                    <% if (bool.Parse(row["isend"].ToString()))
                       { %>
                    <a href="javascript:;" data-toggle="lookupback" data-args="{pc_Channel_NewsEdit_channelname:'<%= row["ChanneTitle"] %>',pc_Channel_NewsEdit_channelID:'<%= row["WebArticleId"] %>'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
                    <%} %>
                </td>
            </tr>

            <%
                      System.Data.DataRow[] rows2 = MessageTable.Select(" ParentId='" + row["WebArticleId"] + "'");
                      if (rows2.Count() > 0)
                      {
                          foreach (System.Data.DataRow row2 in rows2)
                          {
            %>
            <tr>
                <td style="padding-left: 50px; text-align: left;">|__<a href="#"><%= row2["ChanneTitle"]%></a></td>
                <td style="padding-left: 50px; text-align: left;">|__<a href="#"><%= row2["EChanneTitle"]%></a></td>
                <td>
                    <% if (bool.Parse(row2["isend"].ToString()))
                       { %>
                    <a href="javascript:;" data-toggle="lookupback" data-args="{pc_Channel_NewsEdit_channelname:'<%= row2["ChanneTitle"] %>',pc_Channel_NewsEdit_channelID:'<%= row2["WebArticleId"] %>'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
                    <%} %>
                </td>
            </tr>
            <%
                              System.Data.DataRow[] rows3 = MessageTable.Select(" ParentId='" + row2["WebArticleId"] + "'");
                              if (rows3.Count() > 0)
                              {
                                  foreach (System.Data.DataRow row3 in rows3)
                                  {
            %>
            <tr>
                <td style="padding-left: 100px; text-align: left;">|__<a href="#"><%= row3["ChanneTitle"]%></a></td>
                <td style="padding-left: 100px; text-align: left;">|__<a href="#"><%= row3["EChanneTitle"]%></a></td>
                <td>
                    <% if (bool.Parse(row3["isend"].ToString()))
                       { %>
                    <a href="javascript:;" data-toggle="lookupback" data-args="{pc_Channel_NewsEdit_channelname:'<%= row3["ChanneTitle"] %>',pc_Channel_NewsEdit_channelID:'<%= row3["WebArticleId"] %>'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
                    <%} %>
                </td>
            </tr>
            <%
                                  }
                              }
                          }
                      }
                  }
              } %>
            
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><a href="javascript:;" data-toggle="lookupback" data-args="{pc_Channel_NewsEdit_channelname:'',pc_Channel_NewsEdit_channelID:''}" class="btn btn-close" title="清空" data-icon="trash">清空</a></li>
    </ul>
</div>
